package com.zxtyshangjia.zxtyjms.login.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.zxtyshangjia.zxtyjms.R;

import java.util.TimerTask;

/**
 * Created by 18222 on 2017/9/27.
 * 启动页
 */

public class WelComeActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.welcome_activity);

        java.util.Timer timer = new java.util.Timer(true);
        TimerTask task = new TimerTask() {
            public void run() {
                startActivity(new Intent(WelComeActivity.this,LoginActivity.class));
                finish();
            }
        };
        timer.schedule(task, 500);

    }
}
